﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
namespace CMN.Entity
{
      ///<summary>
    ///Normal_AdvertiseEntity实体类(广告)
    ///</summary>
    [Serializable]
    public partial class Normal_AdvertiseEntity:ISerializable 
    {
        #region "Private Variables"
        private DataTableAction _DataTable_Action;  // 操作方法 Insert:增加 Update:修改 Delete:删除
        private Int32 _Id=0; // 自增Id
        private String _Title=""; // 标题
        private String _Advertise=""; // 广告内容
        private DateTime _Adddate=DateTime.Now; // 添加时间
        private DateTime? _StartDate=null; // 结束时间
        private DateTime? _EndDate = null; // 结束时间
        private String _Code=""; // 编码（前台调用）
        public Normal_AdvertiseEntity()
        {

        }
        public Normal_AdvertiseEntity(SerializationInfo info, StreamingContext content)
        {
            Id = info.GetInt32("Id");
            Title = info.GetString("Title");
            Advertise = info.GetString("Advertise");
            _Adddate = info.GetDateTime("Adddate");
            EndDate = (DateTime?)info.GetValue("StartDate", typeof(DateTime?));

            EndDate = (DateTime?)info.GetValue("EndDate", typeof(DateTime?));

            Code = info.GetString("Code");
        }


        public virtual void GetObjectData(SerializationInfo info, StreamingContext content)
        {
            info.AddValue("Id", Id);
            info.AddValue("Advertise", Advertise);
            info.AddValue("Title", Title);
            info.AddValue("Adddate", Adddate);
            info.AddValue("StartDate", StartDate);
            info.AddValue("EndDate", EndDate);
            info.AddValue("Code", Code);
        }
        #endregion

        #region "Public Variables"

        ///<summary>
        /// 操作方法 Insert:增加 Update:修改 Delete:删除
        ///</summary>
        public DataTableAction DataTable_Action
        {
            set { this._DataTable_Action = value; }
            get { return this._DataTable_Action; }
        }
        /// <summary>
        /// 自增Id
        /// </summary>
        public Int32  Id
        {
            set { this._Id = value; }
            get { return this._Id; }
        }
        /// <summary>
        /// 标题
        /// </summary>
        public String  Title
        {
            set { this._Title = value; }
            get { return this._Title; }
        }
        /// <summary>
        /// 广告内容
        /// </summary>
        public String  Advertise
        {
            set { this._Advertise = value; }
            get { return this._Advertise; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime  Adddate
        {
            set { this._Adddate = value; }
            get { return this._Adddate; }
        }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime?  StartDate
        {
            set { this._StartDate = value; }
            get { return this._StartDate; }
        }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime?  EndDate
        {
            set { this._EndDate = value; }
            get { return this._EndDate; }
        }
        /// <summary>
        /// 编码（前台调用）
        /// </summary>
        public String  Code
        {
            set { this._Code = value; }
            get { return this._Code; }
        }
        #endregion
    }
}
